import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';

import { LoginService } from '../../services/login.service';
@Component({
  selector: 'app-nav',
  templateUrl: './nav.component.html',
  styleUrls: ['./nav.component.less']
})
export class NavComponent implements OnInit {
  constructor(private router: Router, public login: LoginService) {}

  ngOnInit() {
    this.login.logInit();
  }
  loginOut() {
    this.login.loginOut();
  }
}
